<template>
    <div>
        <a-modal
                title="添加车辆车长"
                v-model="addClcc"
                @ok="handleAddClccOk"
                :maskClosable="false"
                okText="保存"
                @cancel="handleCancel">
            {{thisAddModel}}
        </a-modal>
        <a-modal
                title="添加车辆车牌颜色"
                v-model="addClcpys"
                @ok="handleAddClcpysOk"
                :maskClosable="false"
                okText="保存"
                @cancel="handleCancel">
            {{thisAddModel}}

        </a-modal>
        <a-modal
                title="添加车辆类型"
                v-model="addCllx"
                @ok="handleAddCllxOk"
                :maskClosable="false"
                okText="保存"
                @cancel="handleCancel">
            {{thisAddModel}}

        </a-modal>
        <a-modal
                title="添加车辆品牌"
                v-model="addClpp"
                @ok="handleAddClppOk"
                :maskClosable="false"
                okText="保存"
                @cancel="handleCancel">
            {{thisAddModel}}

        </a-modal>
        <a-modal
                title="添加车辆载重"
                v-model="addClzz"
                @ok="handleAddClzzOk"
                :maskClosable="false"
                okText="保存"
                @cancel="handleCancel">
            {{thisAddModel}}

        </a-modal>
        <a-modal
                title="修改车辆车长"
                v-model="mdfClcc"
                @ok="handleMdfClccOk"
                :maskClosable="false"
                okText="保存"
                @cancel="handleCancel">
            {{thisAddModel}}
        </a-modal>
        <a-modal
                title="修改车辆车牌颜色"
                v-model="mdfClcpys"
                @ok="handleMdfClcpysOk"
                :maskClosable="false"
                okText="保存"
                @cancel="handleCancel">
            {{thisAddModel}}

        </a-modal>
        <a-modal
                title="修改车辆类型"
                v-model="mdfCllx"
                @ok="handleMdfCllxOk"
                :maskClosable="false"
                okText="保存"
                @cancel="handleCancel">
            {{thisAddModel}}

        </a-modal>
        <a-modal
                title="修改车辆品牌"
                v-model="mdfClpp"
                @ok="handleMdfClppOk"
                :maskClosable="false"
                okText="保存"
                @cancel="handleCancel">
            {{thisAddModel}}

        </a-modal>
        <a-modal
                title="添加车辆载重"
                v-model="mdfClzz"
                @ok="handleMdfClzzOk"
                :maskClosable="false"
                okText="保存"
                @cancel="handleCancel">
            {{thisAddModel}}

        </a-modal>
    </div>
</template>

<script>
    import {HandleClDicOk} from "@/views/my/dic_manage/caozuo/HandleClDicOk"

    export default {
        name: "SaveDic",
        components: {},
        mixins: [HandleClDicOk],
        data() {
            return {
                addClcc: false,
                addClcpys: false,
                addCllx: false,
                addClpp: false,
                addClzz: false,
                thisAddModel: "",
                thisMdfModel: ""
            }
        },
        created: {},
        mounted: {},
        computed: {},
        methods: {
            // 显示添加车辆类型字典的model
            showAddDicModal(model) {
                console.log(model);
                this.thisAddModel = model;
                switch (model) {
                    case "addClcc":
                        this.addClcc = true;
                        break;
                    case "addClcpys":
                        this.addClcpys = true;
                        break;
                    case "addCllx":
                        this.addCllx = true;
                        break;
                    case "addClpp":
                        this.addClpp = true;
                        break;
                    case "addClzz":
                        this.addClzz = true;
                        break;
                }
            },
            showMdfDicModal(model) {
                console.log(model);
                this.thisMdfModel = model;
                switch (model) {
                    case "mdfClcc":
                        this.mdfClcc = true;
                        break;
                    case "mdfClcpys":
                        this.mdfClcpys = true;
                        break;
                    case "mdfCllx":
                        this.mdfCllx = true;
                        break;
                    case "mdfClpp":
                        this.mdfClpp = true;
                        break;
                    case "mdfClzz":
                        this.mdfClzz = true;
                        break;
                }
            },

        },
        props: {},
        watch: {}
    }
</script>

<style scoped>

</style>